// get set has
const user = {
    name: 'Jake',
};

const proxy = new Proxy(user, {
    get(target, property, receiver) {
        console.log(`Getting ${property}`);

        return Reflect.get(...arguments);
    },

    set(target, property, value, receiver) {
        console.log(`Setting ${property}=${value}`);

        return Reflect.set(...arguments);
    },
});


proxy.name;   // Getting name
proxy.age = 18; //Setting age=18

